﻿using Credera.Theta.API;
using System;
using System.Collections.Generic;

namespace Credera.Theta.Commands
{
    [Command("Test")]
    class TestCommand : InputCommand
    {
        [Parameter(validationValuesFunction:"GetParameterOneValidationValues")]
        public string ParameterOne { get; set; }

        public void GetParameterOneValidationValues(ValidationValuesFunctionContext context)
        {
            context.Values.AddRange(new string[]
            {
                "value1",
                "value2",
                "value3"
            });
        }

        public override void Invoke(CommandInvocationContext context)
        {
            // do something
        }
    }
}
